(function() {
	"use strict";
	var util = new publicMethod();
	
	function init() {
		debugger;
		var title = document.title.slice(0,-4);
		
		var lotteryTime = document.getElementById("lotteryTime");
		var lotTime = document.getElementById("lotTime")
		var issue = document.getElementById("issue");
		var startTime = document.getElementById("startTime");
		var endTime = document.getElementById("endTime");
		var tabMould = document.getElementById("tabMould");
		
		var lotteryHtml = '<p class="title">每10分钟一期。</p>';
		
		if(lotSeries == "1007") {//重庆时时彩
			var html = '<p class="title">每天120期：</p>'+
				'<p class="title">白天72期(10:00-22:00)，十分钟一期；</p>'+
				'<p class="title">夜场48期(22:00-01:55)，五分钟一期。</p>';
			lotteryTime.innerHTML = html;
			title = "时时彩" ;
			if(isGold == 1) {
				title = "金币夜场时时彩" ;
			}else if(isGold == 3){
				title = "乐豆夜场时时彩" ;
			}
		} else if(lotSeries == "1014") {//开心时时彩
			lotteryTime.innerHTML = lotteryHtml;
			title = "开心时时彩" ;
		} else if(lotSeries == "1013") {//新时时彩
			lotteryTime.innerHTML = lotteryHtml;
			title = "新时时彩" ;
		} else if(lotSeries == "1008") {//安徽快三~快三
			issue.innerHTML = "84";
			startTime.innerHTML = "08:50";
			endTime.innerHTML = "22:00";
			title = "快三" ;
		} else if(lotSeries == "1009") {//江苏快三~新快三
			issue.innerHTML = "82";
			startTime.innerHTML = "08:40";
			endTime.innerHTML = "22:10";
			title = "新快三" ;
			if(isGold == 1) {
				title = "金币快三" ;
			}else if(isGold == 3){
				title = "乐豆快三" ;
			}
		} else if(lotSeries == "1012") {//幸运快三~广西快三
			issue.innerHTML = "78";
			startTime.innerHTML = "09:28";
			endTime.innerHTML = "22:28";
			title = "幸运快三" ;
		} else if(lotSeries == "1010") {//好运快三
			lotteryTime.innerHTML = lotteryHtml;
			title = "好运快三" ;
		} else if(lotSeries == "1011") {//精彩快三、欢乐快三、开心快三
			lotteryTime.innerHTML = lotteryHtml;
			title = "欢乐快三" ;
		} else if(lotSeries == "1015"){//精彩快三
			tabMould.style.display = "none";
			if(productName == "yccp"){
				title = "鸿运快三"
			}else{
				title = "精彩快三" ;
				if(isGold == 1) {
					title = "金币精彩快三" ;
				}else if(isGold == 3){
					title = "乐豆精彩快三" ;
				}
			}
		} else if(lotSeries == "1016"){//开心快三
			tabMould.style.display = "none";
			if(productName == "yccp"){
				title = "吉祥快三"
			}else{
				title = "开心快三" ;
				if(isGold == 1) {
					title = "金币开心快三" ;
				}else if(isGold == 3){
					title = "乐豆开心快三" ;
				}
			}
		} else if(lotSeries == "1804") {//重庆快乐十分~快乐十分
			issue.innerHTML = "97";
			lotTime.style.display = "none" ;
			title = "快乐十分" ;
			if(isGold == 1) {
				title = "金币十分" ;
			}else if(isGold == 3){
				title = "乐豆十分" ;
			}
		} else if(lotSeries == "1805") {//广东快乐十分~新快乐十分
			issue.innerHTML = "84";
			startTime.innerHTML = "09:10";
			endTime.innerHTML = "23:00";
			title = "新快乐十分" ;
		} else if(lotSeries == "1806") {//欢乐十分
			lotteryTime.innerHTML = lotteryHtml;
			title = "欢乐十分" ;
		} else if(lotSeries == "1807") {//精彩十分
			lotteryTime.innerHTML = lotteryHtml;
			title = "精彩十分" ;
		} else if(lotSeries == "2007") {//山东11选5~老11选5
			issue.innerHTML = "87";
			startTime.innerHTML = "08:35";
			endTime.innerHTML = "23:55";
			title = "老11选5" ;
			if(isGold == 1) {
				title = "金币11选5" ;
			}else if(isGold == 3){
				title = "乐豆11选5" ;
			}
		} else if(lotSeries == "2801") {//新疆11选5~夜场11选5
			issue.innerHTML = "97";
			startTime.innerHTML = "10:00";
			endTime.innerHTML = "次日02:00";
			title = "夜场11选5" ;
			if(isGold == 1) {
				title = "金币夜场11选5" ;
			}else if(isGold == 3){
				title = "乐豆夜场11选5" ;
			}
		} else if(lotSeries == "2802") {//广东11选5~开心11选5
			issue.innerHTML = "84";
			startTime.innerHTML = "09:10";
			endTime.innerHTML = "23:00";
			title = "开心11选5" ;
		} else if(lotSeries == "2006") {//新11选5~江西11选5
			issue.innerHTML = "84";
			startTime.innerHTML = "09:10";
			endTime.innerHTML = "23:00";
			title = "新11选5" ;
		} else if(lotSeries == "2804") {//湖北11选5~精彩11选5
			issue.innerHTML = "81";
			startTime.innerHTML = "08:35";
			endTime.innerHTML = "21:55";
			title = "精彩11选5" ;
		} else if(lotSeries == "2803") {//广西11选5~幸运11选5
			issue.innerHTML = "90";
			startTime.innerHTML = "09:00";
			endTime.innerHTML = "23:50";
			title = "幸运11选5" ;
		} else if(lotSeries == "2805") {//鸿运11选5
			lotteryTime.innerHTML = lotteryHtml;
			title = "鸿运11选5" ;
		} else if(lotSeries == "2806") {//吉祥11选5
			lotteryTime.innerHTML = lotteryHtml;
			title = "吉祥11选5" ;
		} else if(lotSeries == "2800") {//上海11选5
			lotteryTime.innerHTML = lotteryHtml;
			title = "上海11选5" ;
		}
		
		if(reTitle) {
			var param = {};
			param.titleName = title;
			util.sendToClient(param);
		}
		
	}
	window.init = init;
	
})();
